<style type="text/css">
    td.init{
        font-weight: 800;
        display: block;
    }
    .active-select{
        font-weight: bold;
        color: #0ec358;
        font-size: 14px;
        background-color: #f5f5f5;
    }
    #one .search{
        max-width: 113px;
    }
</style>

<div class="row">
    <div class="col-lg-2 col-sm-4 col-md-2">
<!--        科目列表  -->
        <div class="panel panel-default panel-intro">
            <div class="panel-heading"></div>
            <div class="panel-body" style="padding: 0px;">
                <div class="tab-content" id="1">
                    <div class="tab-pane fade active in" id="one">
                        <div class="widget-body no-padding">
                            <div class="toolbar" id="toolbar1">
                                {:build_toolbar('refresh')}
                            </div>
                            <table id="table1" class="table table-bordered table-hover" width="100%"></table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="col-lg-10 col-sm-8 col-md-10">
        <div class="panel panel-default panel-intro">
            <div class="panel-heading"></div>
            <div class="panel-body">
                <div id="myTabContent2" class="tab-content">
                    <div class="tab-pane fade active in" id="two">
                        <div class="widget-body no-padding">
                            <div id="toolbar2" class="toolbar">
                                <a href="javascript:;" class="btn btn-primary btn-refresh align-left" title="{:__('Refresh')}" ><i class="fa fa-refresh"></i> </a>
                                <a href="yexam/question/add?subject_id=" data-link="yexam/question/add?subject_id=" data-area='["1200px","750px"]' class="btn subjectId btn-dialog btn-success btn-add {:$auth->check('yexam/question/add?unit_id=1')?'':'hide'}" title="{:__('Add')}" ><i class="fa fa-plus"></i> {:__('Add')}</a>
                                <a href="javascript:;"  class="btn btn-success btn-edit btn-disabled disabled {:$auth->check('yexam/exam/edit')?'':'hide'}" title="{:__('Edit')}" ><i class="fa fa-pencil"></i> {:__('Edit')}</a>
                                <a href="javascript:;" class="btn btn-danger btn-del btn-disabled disabled {:$auth->check('yexam/exam/del')?'':'hide'}" title="{:__('Delete')}" ><i class="fa fa-trash"></i> {:__('Delete')}</a>

                                <a class="btn btn-success btn-recyclebin btn-dialog {:$auth->check('yexam/examination/recyclebin')?'':'hide'}" href="yexam/examination/recyclebin" title="{:__('Recycle bin')}">
                                    <i class="fa fa-recycle"></i> {:__('Recycle bin')}</a>
                                <a href="yexam/question_error/index" class="btn btn-info btn-facebook btn-dialog" title="{:__('错题反馈')}">
                                    <i class="fa fa-book"></i>
                                    {:__("错题反馈")}
                                    <span class="badge">{$feedbackNum}</span>
                                </a>
                            </div>
                            <table id="table2" class="table table-striped table-bordered table-hover" data-operate-edit="{:$auth->check('yexam/exam/edit')}" data-operate-del="{:$auth->check('yexam/exam/del')}" width="100%">
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script type="text/html" id="tpl">
    <form action="" data-select="form1,form2" class="link-more">
        <div class="form-group col-xs-12 col-sm-12 col-md-12 col-lg-12" data-toggle="cxselect" data-selects="top,second,third" style="margin-top: 30px;">
            <select class="top form-control dry-select" name="top" data-url="yexam/question_error/getCategory" style="overflow: hidden;width: 60px"></select>
            <select class="second form-control dry-select" name="second" data-url="yexam/question_error/getCategory" data-query-name="pid" style="width: 80px;"></select>
            <select class="third form-control dry-select" name="third" data-url="yexam/question_error/getCategory" data-query-name="pid" style="display: block;width: 60px;"></select>
            <input type="hidden" class="operate" data-name="category_id" value="=" />
            <input type="hidden" class="where" value="" name="category_id">
        </div>
    </form>
</script>
<!--===================== 根据章节进行搜索 ===================-->
<script type="text/html" id="unit_tpl">
    <form action="">
        <div data-toggle="cxselect" data-selects="january,february,march">
            <select name="january" class="january form-control unit-id" data-url="yexam/unit/cxselect" style="width: 60px;"></select>
            <select name="february" class="february form-control unit-id" data-url="yexam/unit/cxselect" data-query-name="pid" style="width: 60px;"></select>
            <select name="march" class="march form-control unit-id" data-url="yexam/unit/cxselect" data-query-name="pid" style="width: 60px;"></select>
            <input type="hidden" class="operate" data-name="unit_id" value="">
        </div>
    </form>
</script>



